# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class WeixinItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    name = scrapy.Field()
    wxh = scrapy.Field()
    desc = scrapy.Field()
    zhuti = scrapy.Field()
    avatar = scrapy.Field()
    type = scrapy.Field()
    qrcode = scrapy.Field()


def init_item():
    item = WeixinItem()
    ks = ['name', 'wxh', 'desc', 'zhuti', 'avatar', 'type', 'qrcode']
    for key in ks:
        item[key] = None
    return item
